<?php // no direct access
/**
* @version   1.3 August 1, 2010
* @author    RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2010 RocketTheme, LLC
* @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/
defined('_JEXEC') or die('Restricted access'); 
$doc = &JFactory::getDocument();
JHTML::_('behavior.mootools');
$doc->addScript(JURI::Root(true) . '/modules/mod_rokintroscroller/tmpl/js/rokintroscroller.js');
$doc->addStyleSheet(JURI::Root(true) . '/modules/mod_rokintroscroller/tmpl/css/rokintroscroller.css'); //++F
$doc->addScriptDeclaration("
window.addEvent((window.safari) ? 'load' : 'domready', function() {
	var rnu = new RokIntroScroller('rokintroscroller', {
		'arrows': {
			'effect': true,
			'opacity': ".$params->get('arrows_opacity', 0.35)."
		},
		'scroll': {
			'duration': ".$params->get('duration').",
			'itemsPerClick': ".$params->get('items_per_click', 2).",
			'transition': Fx.Transitions.Quad.easeOut
		}
	});
});");


$style = '.scroller-item img {width:'.$params->get('thumbwidth', 212).'px;height:'.$params->get('thumbheight', 150).'px;}'
		.'.scroller-item {width:'.$params->get('thumbwidth', 212).'px;}'; 
$doc->addStyleDeclaration( $style );
?>

<div class="scroller-bottom">
	<div class="scroller-bottom1">
		<div class="scroller-bottom2">
			<div class="scroller-top">
				<div class="scroller-top1">
					<div class="scroller-top2">
						<!-- Content START -->
							<div id="rokintroscroller" class="<?php echo $params->get('moduleclass_sfx'); ?>">						
						        <?php foreach ($list as $item) :  ?>
						        <div class="scroller-item">
									<?php if ($params->get('show_title') == 1) :?>
										<?php if ($params->get('link_title') == 1) :?>
										<h2 class="rokintroscroller-title"><a href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a></h2>
										<?php else: ?>
										<h2 class="rokintroscroller-title"><?php echo $item->title; ?></h2>
										<?php endif; ?>
									<?php endif; ?>
									<?php echo $item->introtext; ?>
						            <?php if ($params->get('show_readmore') == 1) :?>
						            <a href="<?php echo $item->link; ?>" class="readon"><span><?php echo $params->get('readmore'); ?></span></a> 
						            <?php endif; ?>
						        </div>
						    	<?php endforeach; ?>
						<!-- Content END -->		
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

